package com.shuma.shopmanage.model.shop.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.HashMap;

@TableName("operation")
@Data
public class Operation implements Serializable {

//    @TableId(value = "id", type = IdType.AUTO)
//    @TableField("id")
    @Id
    private Long id;

    @TableField("operatorId")
    private Long operatorId;

    @TableField("goodsId")
    private Long goodsId;

    @TableField("type")
    private Integer type;

    @TableField("message")
    private String message;

    @TableField("isDelete")
    private Boolean isDelete;

    @TableField("createTime")
    private Date createTime;

    @TableField("updateTime")
    private Date updateTime;

    public static final HashMap status = new HashMap(){{
        put(0,"新增");
        put(1,"发起审批");
        put(2,"审批通过");
        put(3,"审批驳回");
        put(4,"上线");
        put(5,"下线");
    }};
    // getters and setters ...
}